home *** CD-ROM | disk | FTP | other *** search
- ;
- ; $VER: TV-Logo Installation Script 1.3 (16.08.2000)
- ;
- ; Author: Damir Arh
- ;
- ; (c)2000 Digital Amiga Dream, All Rights Reserved
- ;
- ; This script may not be modified without explicit permission
- ; of the author.
- ;
- ; Installs TV-Logo on a floppy disk or a hard disk.
- ;
- ;
- ; $Id: Install,v 1.3 2000/08/16 15:27:03 damir Rel $
- ;
- ; $Log: Install,v $
- ; Revision 1.3 2000/08/16 15:27:03 damir
- ; - user settings don't get overwritten any more
- ;
- ; Revision 1.2 2000/07/23 10:50:19 damir
- ; - the guide gets also installed
- ;
- ; Revision 1.1 2000/01/30 16:29:51 damir
- ; Initial revision
- ;
- ;
- ;
- ;-------------------------------------------------
-
- ; set the needed constants
-
- (set #type-floppy 0)
- (set #type-hard 1)
-
-
- ;-------------------------------------------------
-
- ; set all the strings
-
- (set #select-type
- (cat "Where do you want to install " @app-name " to?")
- )
-
- (set #select-type-help
- (cat "The installation script can install the program "
- "on a floppy disk (to be able to boot from it) or on "
- "your hard disk (to be able to run it from Workbench).\n\n")
- )
-
- (set #select-floppy "floppy disk")
- (set #select-hard "hard disk")
-
- (set #select-dest
- (cat "Select destination directory for " @app-name
- " (a new drawer will be created).")
- )
-
- (set #insert-floppy
- (cat "Please insert an empty floppy disk in DF0:.")
- )
-
- (set #install-samples
- (cat "Do you want to install the sample settings?\n"
- "(This will overwrite your existing settings.)")
- )
-
- ;-------------------------------------------------
-
- (set #source-dir
- (pathonly @icon)
- )
-
-
- ;-------------------------------------------------
-
- ; floppy or hard disk installation
-
- (set #type
- (askchoice
- (prompt #select-type)
- (help #select-type-help @askchoice-help)
- (choices
- #select-floppy
- #select-hard
- )
- (default #select-floppy)
- )
- )
-
- ; samples installation
-
- (set #samples
- (askbool
- (prompt #install-samples)
- (help @askbool-help)
- (default 0)
- )
- )
-
- ;-------------------------------------------------
-
- ; set and prepare destination
-
- (if (= #type #type-hard)
-
- (
- (set #destination
- (askdir
- (prompt #select-dest)
- (help #select-dest-help @askdir-help)
- (default @default-dest)
- )
- )
-
- (set @default-dest
- (tackon #destination "TV-Logo")
- )
-
- (makedir @default-dest
- (infos)
- )
- )
-
- (
- (set @default-dest "DF0:")
-
- (message #insert-floppy)
- (run "relabel DF0: TV-Logo")
- (run "install DF0:")
- (delete "DF0:Trashcan"
- (infos)
- (all)
- )
- )
-
- )
-
- (complete 10)
-
-
- ;-------------------------------------------------
-
- ; copy the supplied files
-
- (copyfiles
- (source (tackon #source-dir "files"))
- (dest @default-dest)
- (all)
- )
-
- (copyfiles
- (source (tackon #source-dir "TV-Logo_english.guide"))
- (dest @default-dest)
- (infos)
- )
-
- (if (= 1 #samples)
- (copyfiles
- (source (tackon #source-dir "samples"))
- (dest @default-dest)
- (all)
- )
- )
-
- (complete 50)
-
-
- ;-------------------------------------------------
-
- ; delete unneeded files from HD, copy additional files to floppy
-
- (if (= #type #type-hard)
-
- (
- (delete (tackon @default-dest "c") (all))
- (delete (tackon @default-dest "fonts") (all))
- (delete (tackon @default-dest "libs") (all))
- (delete (tackon @default-dest "s") (all))
- )
-
- (
- (copyfiles
- (source "C:Assign")
- (dest (tackon @default-dest "c"))
- )
- (copyfiles
- (source "C:SetPatch")
- (dest (tackon @default-dest "c"))
- )
- (delete (tackon @default-dest "c/AddFiles"))
- (copyfiles
- (source "LIBS:asl.library")
- (dest (tackon @default-dest "libs"))
- )
- (copyfiles
- (source "LIBS:diskfont.library")
- (dest (tackon @default-dest "libs"))
- )
- (delete (tackon @default-dest "libs/AddFiles"))
- (delete (tackon @default-dest "TV-Logo.info"))
- )
-
- )
-
- (complete 100)
-
-
- ;-------------------------------------------------
-
- ;installation is complete
-
- (exit)
-